package com.woniuxy.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//扫描到拦截器所在的包    扫描 拦截器 "commons.interceptor"
@SpringBootApplication(scanBasePackages = {"com.woniuxy"})
@EnableEurekaClient //开启eureka客户端，进行注册
@EnableCircuitBreaker //开启熔断器
@EnableFeignClients(basePackages = "com.woniuxy.commons.service")
public class ProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class, args);
    }

}
